﻿using LanguagePolish.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LanguagePolish.EntityModel
{
    partial class Student
        : BaseViewModelErrorInfo     // добавляем возможность использования оповещения.
    {

        public override void CreateRules()
        {
            AddRule("Name", () => string.IsNullOrWhiteSpace(Name), "'Name' can't be empty!");
        }
    }
}
